<@page currentChannel="RESUME" title="我的简历" useheader="default" assets=["/up/resume/css/global.css","/up/resume/css/cover-letter.css", "/js/jquery.formvalidate.js","/up/resume/js/cover-letter.js"]>

<div id="content">

    <#include "/WEB-INF/ftl/job/navigation.ftl">
    <@navigation 'resume'/>
    <div class="cover-letter">
    <#include "/WEB-INF/ftl/job/subsubnavigation.ftl"/>
    <@subsubnavigation 'letter'/>
    <div class="cl-content shadow-rb2">
    <#if letters?? && letters?size &gt; 0>
            <div class="letter-edit">
                <p class="letter-title" id="letter_num" data-num="${maxnum!'10'}">
                    <strong>求职信</strong>
                    <span>最多可以保存${maxnum!'10'}份</span>
                </p>
                <ul class="letter-list">
                    <#list letters as letter>
                        <li data-ids="${letter.id}">
                        <div class="letter-list-inner">
                            <p class="letter-num"><#if letter_index lt 9>0</#if>${letter_index+1}</p>
                            <div class="letter-list-con">${letter.content?replace(' ','&nbsp;')?replace('\n', '<br />')}</div>
                                <#--<@nec letter.content?replace("<","&lt;")?replace(">", "&gt;")/>-->

                            <p class="letter-lb-wrap"><a href="" class="letter-edit-btn" data-edit="/resume/letter/${letter.id}/edit">编辑</a>·<a href="" class="letter-del-btn" data-del="/resume/letter/${letter.id}/delete">删除</a></p>
                        </div>
                        </li>
                    </#list>
                </ul>
                <a onclick="" type="button" class="big-fresh" id="J_addBtn" data-add="/resume/letter/create"><span style="font-weight:normal;">&nbsp;&nbsp;添加求职信&nbsp;&nbsp;</span></a>
            </div>
        <div id="letter-hide-form">
           <#include "add_letter.ftl"/>
        </div>
        <#else >
            <div class="init-add-letter">
                <h2 class="init-letter-title">毛遂自荐，让HR了解你</h2>

                <p class="init-letter-tip">一封好的求职信可以拉近HR与你之间的距离，帮你获得更多的面试机会</p>

                <P class="init-btn-wrap"><a href="" id="init-add-btn" data-add="/resume/letter/create">添加求职信</a></P>

                <#include "add_letter.ftl"/>
            </div>
    </#if>
    </div>
</div>

</div>
</@page>